package com.cn.ctrl;

import com.cn.model.Users;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @GetMapping("a")
    public String user() throws JsonProcessingException {
        return new ObjectMapper().writeValueAsString(new Users());
    }
}
